{include file="header.html"}
<div class="conter">
  {include file="header.common.html"}
  <div class="form_box">
   <form id="setkuan_form" method="post" >
    <dl>
     <dt>{$lang.email}</dt>
     <dd><input type="input" id="email" name="email" placeholder="请输入邮箱地址" class="text_input" value="{$profile.email|escape}"/></dd>
    </dl> 
    <dl>
     <dt>{$lang.real_name}</dt>
     <dd><input type="input" id="real_name" name="real_name" placeholder="请输入真实姓名" class="text_input" value="{$profile.real_name|escape}"/></dd>
    </dl> 
    <dl>
     <dt>手机电话</dt>
     <dd><input type="input" id="phone_mob" name="phone_mob" placeholder="请输入手机号码或者固定电话" class="text_input" value="{$profile.phone_mob|escape}"/></dd>
    </dl> 
    <dl>
     <dt>{$lang.im_qq}</dt>
     <dd><input type="input" id="im_qq" name="im_qq" placeholder="请输入QQ号码" class="text_input" value="{$profile.im_qq|escape}"/></dd>
    </dl>   
    <dl>
     <dt>{$lang.birthday}</dt>
     <dd><input type="input" id="birthday" name="birthday" placeholder="请输入出生日期" class="text_input" value="{$profile.birthday|escape}" datatype="Require"/></dd>
    </dl> 
    <dl>
     <dt>所属性别</dt>
     <dd class="box_txt"><label><input type="radio" name="gender" value="0" {if $profile.gender eq 0}checked="checked"{/if} /> {$lang.unknown} </label>&nbsp;&nbsp;&nbsp;&nbsp;<label><input type="radio" name="gender" value="1" {if $profile.gender eq 1}checked="checked"{/if} /> {$lang.male} </label>&nbsp;&nbsp;&nbsp;&nbsp;<label><input type="radio" name="gender" value="2" {if $profile.gender eq 2}checked="checked"{/if} /> {$lang.female} </label></dd>
    </dl> 
    <dl>
     <dt>所在区域</dt>
     <dd class="box_txt"><input name="idpic" type="radio" id="rbtnyes" value="rbtnyes" {if $profile.idpic neq 'rbtnno'}checked="checked"{/if} /><label for="rbtnyes"> 中国</label>&nbsp;&nbsp;&nbsp;&nbsp;<input id="rbtnno" type="radio" name="idpic" value="rbtnno" {if $profile.idpic eq 'rbtnno'}checked="checked"{/if}/><label for="rbtnno"> 美国</label></dd>
    </dl>                          
     <p class="txt"><input type="Submit" class="button_css" value="确认修改"><input type="hidden" name="ret_url" value="{$ret_url}" /></p>
   </form>
  </div>
{include file="footer.html"}
</div>  
<div id="datePlugin"></div>
<script type="text/javascript">
//表单验证
$(function(){
    $('#birthday').date(1915,2015);
    $('#setkuan_form').validate({
        errorPlacement: function(error, element){
            element.parent('dd').append(error);
        },
        onkeyup: false,
        rules : {
            real_name : {required : true },
            phone_mob : {required : true, minlength: 6, checkTel : true},
            im_qq : {  minlength: 5,maxlength: 11, digits : true}
        },
        messages : {
            real_name : {required : '请填写真实姓名. ' },
            phone_mob : {required : '请填写正确的手机电话号码. ', minlength: '请输入正确的电话号码，最小为6位数字', checkTel: "请输入正确的手机号码或者固定电话"},
			im_qq : { minlength: '请输入正确的QQ号，最小为5位数字', maxlength: '请输入正确的QQ号，最大为11位数字', digits : 'QQ号码必须为数字' }
        }
    });
});
</script>
</body>
</html>